import createNextIntlPlugin from 'next-intl/plugin';

const withNextIntl = createNextIntlPlugin('./src/i18n/config.ts');

/** @type {import('next').NextConfig} */
const nextConfig = {
    reactStrictMode: false,
    async rewrites() {
        return [
          {
            source: '/api/:path*',
            destination: `https://tfzzqjlwufeq.sealosbja.site/api/:path*`,
          },
        ];
      },
};

export default withNextIntl(nextConfig);
